<?php
    InitLpu();

    function InitLpu()
    {
        global $mikron;
        if(isset($_REQUEST['lpu']))
        {
            $lpus = $mikron->Cache->getCache('lpulist_cache');
            $selectedlpu = null;
            foreach($lpus as $lpu_item)
            {
                if($lpu_item['guid'] == $_REQUEST['lpu'])
                {
                    $mikron->Cache->setCache('current_lpu', $lpu_item);
                }
            }
        }
    }

    function DrawLpu()
    {
        global $mikron;
        $object = $mikron->Cache->getCache('current_lpu');
        if(is_array($object))
        {
            echo $object['name'];
        }
    }
    
    function DrawPerson()
    {
        global $mikron;
        $object = $mikron->Cache->getCache('current_person');
        if(is_object($object))
        {
            echo $object->DisplayName();
        }
    }

?>
<div class="dvInfo">
    <strong><?php DrawPerson(); ?></strong>
    <hr>
    <?php DrawLpu(); ?>
</div>